package admin;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {
	public static void main(String[] args) throws ParseException {
		
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date initialDate = simpleDateFormat.parse("2021-05-20 00:00:00");
		long initialDates=initialDate.getTime();
		
		Date date=new Date();
		long nowDates=date.getTime();
		long days=(nowDates-initialDates)/(1000*60*60*24);
		System.out.println(days);
	}
}
